package cn.chiship.bs.api.biz.pojo.dto;

import cn.chiship.sdk.core.base.constants.BaseTipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author lj
 * 角色表单
 */
@ApiModel(description = "角色表单")
public class UpmsRoleDto {
    @ApiModelProperty(value = "角色编码",required = true)
    @NotNull(message = "角色编码" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 1, max = 20, message = "角色编码" + BaseTipConstants.LENGTH_MIN_MAX)
    private String code;

    @ApiModelProperty(value = "角色名称",required = true)
    @NotNull(message = "角色名称" + BaseTipConstants.NOT_EMPTY)
    @Length(min = 1, max = 20, message = "角色名称" + BaseTipConstants.LENGTH_MIN_MAX)
    private String name;

    @ApiModelProperty(value = "角色描述")
    private String description;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
